<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//页面显示路由
Route::get('/','IndexController@index'); //首页
Route::get('test2','IndexController@test2'); //首页
Route::get('article_list/{classid?}','IndexController@article_list'); //栏目信息
Route::get('article/{id?}','IndexController@article'); //文章详情信息
Route::get('Index/view/newId/{id?}.html','IndexController@redirect_article'); //文章跳转
Route::get('about','IndexController@about'); //关于我们界面
Route::get('comment/{id}','IndexController@comment'); //评论列表显示
Route::get('comment_add/{id}/{p_id?}','IndexController@comment_add'); //添加评论
Route::post('comment_list','IndexController@comment_list'); //评论更多加载
Route::post('comment_add_op','IndexController@comment_add_op'); //评论添加操作
Route::get('search/{str?}','IndexController@search'); //搜索

Route::group(['namespace' => 'Api'], function () {
    Route::get('export', 'SendMessageController@export'); //导出数据
    Route::get('import', 'SendMessageController@import'); //导入数据
    Route::get('send', 'SendMessageController@send'); //导入数据
    Route::get('send2', 'SendMessageController@send2'); //导入数据
});

Route::get('zol/{uid?}','Extra\ZolController@index'); //统计活动显示
Route::get('queue','Extra\ZolController@queue'); //测试队列
